package com.ruan.service.impl;

import com.alipay.api.AlipayApiException;
import com.ruan.entity.AlipayBean;
import com.ruan.service.PayService;
import com.ruan.utils.Alipay;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName:PayServiceImpl
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/9/14 20:23
 **/
@Service
public class PayServiceImpl implements PayService {

    @Resource
    private Alipay alipay;


    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }
}
